Optimal. Leaf size=113 \[ \frac {3 b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{2 f}-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{f}+\frac {3 \sqrt {b} (a-b) \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {3664, 277, 195, 217, 206} \[ \frac {3 b \sec (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{2 f}-\frac {\cos (e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{f}+\frac {3 \sqrt {b} (a-b) \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 195
Rule 206
Rule 217
Rule 277
Rule 3664
Rubi steps
\begin {align*} \int \sin (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (a-b+b x^2\right )^{3/2}}{x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {(3 b) \operatorname {Subst}\left (\int \sqrt {a-b+b x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac {3 b \sec (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {(3 (a-b) b) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{2 f}\\ &=\frac {3 b \sec (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac {(3 (a-b) b) \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{2 f}\\ &=\frac {3 (a-b) \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{2 f}+\frac {3 b \sec (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{2 f}-\frac {\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.33, size = 170, normalized size = 1.50 \[ \frac {\sec (e+f x) \sqrt {\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)} \left (6 \sqrt {2} \sqrt {b} (a-b) \cos ^2(e+f x) \tanh ^{-1}\left (\frac {\sqrt {(a-b) \cos (2 (e+f x))+a+b}}{\sqrt {2} \sqrt {b}}\right )-2 ((a-b) \cos (2 (e+f x))+a-2 b) \sqrt {(a-b) \cos (2 (e+f x))+a+b}\right )}{4 \sqrt {2} f \sqrt {(a-b) \cos (2 (e+f x))+a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.00, size = 268, normalized size = 2.37 \[ \left [-\frac {3 \, {\left (a - b\right )} \sqrt {b} \cos \left (f x + e\right ) \log \left (-\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) + 2 \, {\left (2 \, {\left (a - b\right )} \cos \left (f x + e\right )^{2} - b\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{4 \, f \cos \left (f x + e\right )}, -\frac {3 \, {\left (a - b\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) \cos \left (f x + e\right ) + {\left (2 \, {\left (a - b\right )} \cos \left (f x + e\right )^{2} - b\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, f \cos \left (f x + e\right )}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.32, size = 357, normalized size = 3.16 \[ \frac {\left (\frac {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}{\cos \left (f x +e \right )^{2}}\right )^{\frac {3}{2}} \cos \left (f x +e \right ) \left (-\left (a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b \right )^{\frac {3}{2}} \left (\cos ^{2}\left (f x +e \right )\right ) a +\left (a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b \right )^{\frac {3}{2}} \left (\cos ^{2}\left (f x +e \right )\right ) b +3 b^{\frac {3}{2}} \ln \left (\frac {2 \sqrt {b}\, \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}+2 b}{\cos \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right ) a -3 b^{\frac {5}{2}} \ln \left (\frac {2 \sqrt {b}\, \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}+2 b}{\cos \left (f x +e \right )}\right ) \left (\cos ^{2}\left (f x +e \right )\right )+\left (a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b \right )^{\frac {5}{2}}-3 \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}\, \left (\cos ^{2}\left (f x +e \right )\right ) a b +3 \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}\, \left (\cos ^{2}\left (f x +e \right )\right ) b^{2}\right )}{2 f \left (a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b \right )^{\frac {3}{2}} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.85, size = 176, normalized size = 1.56 \[ -\frac {4 \, \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} {\left (a - b\right )} \cos \left (f x + e\right ) - \frac {2 \, {\left (a b - b^{2}\right )} \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{{\left (a - b + \frac {b}{\cos \left (f x + e\right )^{2}}\right )} \cos \left (f x + e\right )^{2} - b} + \frac {3 \, {\left (a b - b^{2}\right )} \log \left (\frac {\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right )}{\sqrt {b}}}{4 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sin \left (e+f\,x\right )\,{\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a\right )}^{3/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}} \sin {\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________